package request

type Add struct {
	Title string  `json:"title" form:"title"  binding:"required"` // 商品标题
	Price float64 `json:"price" form:"price"  binding:"required"` // 商品价格
	Stock uint32  `json:"stock" form:"stock"  binding:"required"` //
}
type Update struct {
	Id    uint    `json:"id" form:"id" binding:"required"`
	Title string  `json:"title" form:"title"  binding:"required"` // 商品标题
	Price float64 `json:"price" form:"price"  binding:"required"` // 商品价格
	Stock uint32  `json:"stock" form:"stock"  binding:"required"` //
}
type List struct {
	Id     uint   `json:"id" form:"id" `
	Title  string `json:"title" form:"title"`     // 商品标题
	UserId uint   `json:"user_id" form:"user_id"` // 用户ID
}
type Page struct {
	Id       uint   `json:"id" form:"id" `
	Title    string `json:"title" form:"title"`     // 商品标题
	UserId   uint   `json:"user_id" form:"user_id"` // 用户ID
	Page     uint   `json:"page" form:"page"`
	PageSize uint   `json:"page_size" form:"page_size"`
}
